// ———————————— VUE2.X配置 ————————————————
// import Vue from 'vue'
// import App from './App.vue'
// import router from './router'
// import store from './store'
// import 'ant-design-vue/dist/antd.css'
// import Antd from 'ant-design-vue'
//
// Vue.use(Antd)
// Vue.config.productionTip = false
//
// new Vue({
//   router,
//   store,
//   render: (h) => h(App)
// }).$mount('#app')




// ———————————— VUE3.X配置 ————————————————
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
// 引入i18n
import i18n from '@/locales/setupI18n'
import '@/config/permission' // 引入权限
// 引入ant-design-vue
import 'ant-design-vue/dist/antd.less'
import Antd from 'ant-design-vue'
import * as Icons from '@ant-design/icons-vue'
// 引入svg图标模块
import '@/assets/icons'

// 引入阿里巴巴矢量图标库
import './assets/icon-font/iconfont.css'
// 引入全局自定义配置
const config = require('@/config/settings')


const app = createApp(App)

// 配置全局的原生axios
app.config.globalProperties.$axios = axios
// 配置全局的配置文件对象
app.config.globalProperties.$config = config

// 加载所有ant-design的图标
for (const i in Icons) {
  app.component(i, Icons[i])
}

app.use(store)
app.use(router)
app.use(Antd)
app.use(i18n)
app.mount('#app')
